package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.Medtype;
import stud.aistar.mapper.MedtypeMapper;
import stud.aistar.service.IMedtypeService;

import java.util.List;

/**
 * *
 *
 * @ClassName :wangyu
 * @Description：药品类型service
 * @Author
 * @Date2019/9/28 19:52
 * @Version V1.0
 */
@Service
@Transactional
public class MedTypeServiceImpl implements IMedtypeService {

    @Autowired
    private MedtypeMapper mapper;
    @Override
    public List<Medtype> findAll() {
        List<Medtype> list = mapper.findAll();
        return list;
    }
}
